import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 导入字体图标
import '@/assets/fonts/iconfont.css'
// 引入全局 CSS 样式
import '@/assets/global.css'
// 引入面包屑单文件
import Crumbs from '@/custon/crumbs'
// 引入分页单文件
import Page from '@/custon/page'
import TreeTable from 'vue-table-with-tree-grid'

import filter from '@/api/filter/filter.js'

// 导入vue-quill-editor（富文本编辑器）
import VueQuillEditor from 'vue-quill-editor'
// 导入vue-quill-editor的样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.filter('dateFormat', filter.dateFormat)
// 全局注册组件
Vue.component('tree-table', TreeTable)
// 全局引用
Vue.component('crumbs', Crumbs)
Vue.component('change', Page)

Vue.use(VueQuillEditor)
Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
